// 定义课程结构体
struct Course {
    int code;
    char name[50];
    char nature[20];
    int hours;
    int credits;
    int enrolled_students;
    int max_students;
};

// 函数声明
void loadCoursesFromFile(struct Course courses[], int *num_courses);
void saveCoursesToFile(struct Course courses[], int num_courses);
void addCourse(struct Course courses[], int *num_courses);
void viewCourseDetails(struct Course courses[], int num_courses, int course_code);
void modifyCourse(struct Course courses[], int num_courses, int course_code);
void deleteCourse(struct Course courses[], int *num_courses, int course_code);
void logOperation(char *operation);
